<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            perspective: 800px;
            perspective-origin: 300px 100px;
            transform-style: preserve-3d;
        }

        div {
            position: absolute;
            width: 200px;
            height: 200px;
            left: 200px;
            top: 200px;
            background-image: url("./pic1.jpeg");
            background-size: cover;
            transform: rotateY(0deg);
            transform-origin: 100px 100px 100px;
            /* 
                这个属性可以写三个值，表示原点在空间位置
                其余细节参照之前transform-origin笔记
            */
        }

    </style>
</head>
<body>
    <div></div>
</body>
</html>